/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author XPF
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface SportsEvaluationData extends BasicModel<SportsEvaluationData> {
  dataId?: string; // 记录主键
  evaluationGrade?: string; // 学生年级
  evaluationClass?: string; // 学生班级
  schoolYear?: string; // 测评学年
  semester?: string; // 测评学期
  totalScore?: string; // 测评总分
  standardScore?: string; // 标准分
  additionalScore?: string; // 附加分
  grade?: string; // 测评总分对应等级
  summary?: string; // 测评总结评语
  studentId?: string; // 测评学生基本信息（姓名、性别、身份证）
  teacherId?: string; // 测评负责老师
  evaluationTime?: string; // 测评时间
  evaluationStatus?: string; // 测评状态
}

export const sportsEvaluationDataList = (params?: SportsEvaluationData | any) =>
  defHttp.get<SportsEvaluationData>({
    url: adminPath + '/sports/sportsEvaluationData/list',
    params,
  });

export const sportsEvaluationDataListData = (params?: SportsEvaluationData | any) =>
  defHttp.post<Page<SportsEvaluationData>>({
    url: adminPath + '/sports/sportsEvaluationData/listData',
    params,
  });

export const sportsEvaluationDataForm = (params?: SportsEvaluationData | any) =>
  defHttp.get<SportsEvaluationData>({
    url: adminPath + '/sports/sportsEvaluationData/form',
    params,
  });

export const sportsEvaluationDataSave = (params?: any, data?: SportsEvaluationData | any) =>
  defHttp.postJson<SportsEvaluationData>({
    url: adminPath + '/sports/sportsEvaluationData/save',
    params,
    data,
  });

export const sportsEvaluationDataDelete = (params?: SportsEvaluationData | any) =>
  defHttp.get<SportsEvaluationData>({
    url: adminPath + '/sports/sportsEvaluationData/delete',
    params,
  });
